Package org.dogtagpki.server.rest.v1
Class JobService
java.lang.Object
com.netscape.cms.servlet.base.PKIService
com.netscape.cms.servlet.base.SubsystemService
org.dogtagpki.server.rest.v1.JobService
- All Implemented Interfaces:
JobResource
- Author:
- Endi S. Dewata
-
Field Summary
FieldsFields inherited from class com.netscape.cms.servlet.base.PKIService
DEFAULT_LONG_CACHE_LIFETIME, DEFAULT_SIZE, headers, MESSAGE_FORMATS, MIN_FILTER_LENGTH, request, servletContext, servletRequest, uriInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateJobInfo
(String id, JobConfig jobConfig, boolean includeDetails) javax.ws.rs.core.Response
findJobs()
Returns all jobs.javax.ws.rs.core.Response
Returns a specific job.javax.ws.rs.core.Response
Starts a specific job.Methods inherited from class com.netscape.cms.servlet.base.SubsystemService
audit, auditConfigTokenGeneral, getResourceBundle, getSharedSubsystemConfDir, getSubsystemConfDir, getSubsystemName, getUserMessage
Methods inherited from class com.netscape.cms.servlet.base.PKIService
createCreatedResponse, createNoContentResponse, createOKResponse, createOKResponse, getCMSEngine, getLocale, getParams, getResponseFormat, getResponseFormat, marshall, resolveFormat, resolveFormat, resolveFormat, resolveFormat, sendConditionalGetResponse, unmarshall
-
Field Details
-
logger
public static final org.slf4j.Logger logger
-
-
Constructor Details
-
JobService
public JobService()
-
-
Method Details
-
createJobInfo
public JobInfo createJobInfo(String id, JobConfig jobConfig, boolean includeDetails) throws EBaseException - Throws:
EBaseException
-
findJobs
Description copied from interface:JobResource
Returns all jobs. If the method is executed by an admin, it will return all jobs. Otherwise, it will return all jobs owned by the user.- Specified by:
findJobs
in interfaceJobResource
- Throws:
EBaseException
-
getJob
Description copied from interface:JobResource
Returns a specific job. This method can only be executed by an admin or the job owner.- Specified by:
getJob
in interfaceJobResource
- Throws:
EBaseException
-
startJob
Description copied from interface:JobResource
Starts a specific job. This method can only be executed by an admin or the job owner.- Specified by:
startJob
in interfaceJobResource
- Throws:
EBaseException
-